home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / BCCGRX12.ZIP / contrib / bcc2grx / src / bccgrx03.c < prev    next >
C/C++ Source or Header  |  1993-05-03  |  871b  |  32 lines

  1. /*
  2.  *  BCC2GRX  -  Interfacing Borland based graphics programs to LIBGRX
  3.  *  Copyright (C) 1993  Hartmut Schirmer
  4.  *
  5.  *  see bccgrx.c for details
  6.  */
  7.  
  8. #include "bccgrx00.h"
  9.  
  10. static struct arccoordstype  ac;
  11.  
  12. /* ----------------------------------------------------------------- */
  13. void ellipse(int x, int y, int stangle, int endangle, int xradius, int yradius)
  14. {
  15.   _DO_INIT_CHECK;
  16.   GrEllipseArc(x+VL,y+VT,XR(xradius),YR(yradius),stangle*10,endangle*10, COL);
  17.   ac.x      = _grx_arc_xc - VL;
  18.   ac.y      = _grx_arc_yc - VT;
  19.   ac.xstart = _grx_arc_xs - VL;
  20.   ac.ystart = _grx_arc_ys - VT;
  21.   ac.xend   = _grx_arc_xe - VL;
  22.   ac.yend   = _grx_arc_ye - VT;
  23. }
  24.  
  25. /* ----------------------------------------------------------------- */
  26. void getarccoords(struct arccoordstype  *arccoords)
  27. {
  28.   _DO_INIT_CHECK;
  29.   memcpy( arccoords, &ac, sizeof(ac));
  30. }
  31.  
  32.